package com.example.design.service.impl;

import com.example.design.constant.StrategySelector;
import com.example.design.service.Strategy;
import org.springframework.stereotype.Service;

/**
 * @Description:策略B
 * @Author Hong Qiang
 * @Date 2023/3/10 16:13
 * @Version 1.0
 */
@Service
public class ConcreteStrategyB implements Strategy {
    @Override
    public String strategy() {
        return StrategySelector.strategyB.getStrategy();
    }

    @Override
    public void algorithm() {
        System.out.println("process with strategyB...");
    }
}
